package com.ruoyi.student.api;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.student.domain.StuStudent;
import com.ruoyi.student.service.IStuStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student/api")
public class ApiController extends BaseController {
    @Autowired
    private IStuStudentService IStuStudentService;

    @GetMapping("/getStu")
    public List<StuStudent> getAllStudent(){
            return IStuStudentService.getAllStudent();
    }



}
